 
package com.xbongbong.saas.domain.dao;

import com.xbongbong.paas.domain.entity.StageWorkLogEntity;
import com.xbongbong.saas.domain.entity.OpportunityWorkLogEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


/**
* @author autoGen
* @time 2018-06-06 19:45:16
*/
@Repository
@Mapper
public interface OpportunityWorkLogDao {

	Integer insert(OpportunityWorkLogEntity opportunityWorkLogEntity);
	Integer update(OpportunityWorkLogEntity opportunityWorkLogEntity);

	void insertBatch(List<OpportunityWorkLogEntity> opportunityWorkLogEntityList);

	Integer deleteByKey(@Param("key") Integer key, @Param("corpid") String corpid);
	OpportunityWorkLogEntity getByKey(@Param("key") Integer key, @Param("corpid") String corpid);

	List<OpportunityWorkLogEntity> findEntitys(@Param("param") Map<String, Object> param);
	Integer getEntitysCount(@Param("param") Map<String, Object> param);

	/**
	 * 获取Image不为空且不为空数组的数据（改image格式，脚本用）
	 * @return
	 */
	@Deprecated
	List<OpportunityWorkLogEntity> getImageNotNull4Script();

	/**
	 * 修改Image为附件格式（脚本用）
	 * @return
	 */
	@Deprecated
	Integer updateBatchImageFormat4Script(@Param("list") List<OpportunityWorkLogEntity> list);

}